package com.gxnzd.communityelderly.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxnzd.communityelderly.commom.R;
import com.gxnzd.communityelderly.entity.Employee;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * ClassName: UserService
 * Package: com.gxnzd.communityelderly.service
 * Description:
 *
 * @Author 胡海峰
 * @Create 2024/10/1 21:44
 * @Version 1.0
 */
public interface EmployeeService extends IService<Employee> {

    R login_user( Employee employee);

    R insertEmployee(Employee employee);
    R<Page> getList(Integer page, Integer pageSize, String userName, String name , Integer type);

    R updateEmployee(Employee employee);
    R deleteEmployee(Long empId);

    R<List<Employee>> seleteList(String name,Integer type);

    R modifyPassword(Employee employee);

    R phoneLogin(Employee employee);

    R logoutToken(HttpServletRequest request);

    R getRatio();

    R getHomeInfo();
}
